package demo10;

public class Test{
    public static void main(String[] args) {
        ISayHello iSayHello=new ISayHello() {
            int a=10;
            @Override
            public void sayHello() {
                System.out.println("hello");
                System.out.println(a);
            }
        };
    iSayHello.sayHello();
    }

}
